From f5fff322db7e9085c151445f8665e7a209172949 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Nov 2004 20:43:59 +0000 Subject: [PATCH] Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...). 2004-11-08 Matthias Clasen * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...). --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkaction.c | 7 ++++--- 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 614ed7cd2c..d113e2d47a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use + gtk_widget_{hide,show} instead of g_object_set (..."visible"...). + * tests/testfilechooserbutton.c (main): Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 614ed7cd2c..d113e2d47a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use + gtk_widget_{hide,show} instead of g_object_set (..."visible"...). + * tests/testfilechooserbutton.c (main): Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 614ed7cd2c..d113e2d47a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use + gtk_widget_{hide,show} instead of g_object_set (..."visible"...). + * tests/testfilechooserbutton.c (main): Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 614ed7cd2c..d113e2d47a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use + gtk_widget_{hide,show} instead of g_object_set (..."visible"...). + * tests/testfilechooserbutton.c (main): Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch) diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c index d154b9582d..abd1a718eb 100644 --- a/gtk/gtkaction.c +++ b/gtk/gtkaction.c @@ -665,9 +665,10 @@ _gtk_action_sync_menu_visible (GtkAction *action, visible = gtk_action_is_visible (action); hide_if_empty = action->private_data->hide_if_empty; - g_object_set (G_OBJECT (proxy), - "visible", visible && !(empty && hide_if_empty), - NULL); + if (visible && !(empty && hide_if_empty)) + gtk_widget_show (proxy); + else + gtk_widget_hide (proxy); } gboolean _gtk_menu_is_empty (GtkWidget *menu); -- 2.30.2